package com.n9.qq.android.firendlist;

import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;

/**
 * @author ice
 * @since 2019/2/22 14:04
 */
public class stTroopNum extends JceStruct {
    public long GroupCode = 0L;
    public long GroupUin = 0L;
    public byte cFlag = 0;
    public long dwAdditionalFlag = 0L;
    public long dwCertificationType = 0L;
    public long dwCmdUinUinFlag = 0L;
    public long dwGroupFlagExt = 0L;
    public long dwGroupInfoSeq = 0L;
    public long dwGroupRankSeq = 0L;
    public long dwGroupTypeFlag = 0L;
    public long dwMyShutupTimestamp = 0L;
    public long dwShutupTimestamp = 0L;
    public String strGroupMemo = "";
    public String strGroupName = "";

    public stTroopNum() {
    }

    public stTroopNum(long var1, long var3, byte var5, long var6, String var8, String var9, long var10, long var12, long var14, long var16, long var18, long var20, long var22, long var24) {
        this.GroupUin = var1;
        this.GroupCode = var3;
        this.cFlag = var5;
        this.dwGroupInfoSeq = var6;
        this.strGroupName = var8;
        this.strGroupMemo = var9;
        this.dwGroupFlagExt = var10;
        this.dwGroupRankSeq = var12;
        this.dwCertificationType = var14;
        this.dwShutupTimestamp = var16;
        this.dwMyShutupTimestamp = var18;
        this.dwCmdUinUinFlag = var20;
        this.dwAdditionalFlag = var22;
        this.dwGroupTypeFlag = var24;
    }

    @Override
    public void readFrom(JceInputStream var1) {
        this.GroupUin = var1.read(this.GroupUin, 0, true);
        this.GroupCode = var1.read(this.GroupCode, 1, true);
        this.cFlag = var1.read(this.cFlag, 2, false);
        this.dwGroupInfoSeq = var1.read(this.dwGroupInfoSeq, 3, false);
        this.strGroupName = var1.readString(4, false);
        this.strGroupMemo = var1.readString(5, false);
        this.dwGroupFlagExt = var1.read(this.dwGroupFlagExt, 6, false);
        this.dwGroupRankSeq = var1.read(this.dwGroupRankSeq, 7, false);
        this.dwCertificationType = var1.read(this.dwCertificationType, 8, false);
        this.dwShutupTimestamp = var1.read(this.dwShutupTimestamp, 9, false);
        this.dwMyShutupTimestamp = var1.read(this.dwMyShutupTimestamp, 10, false);
        this.dwCmdUinUinFlag = var1.read(this.dwCmdUinUinFlag, 11, false);
        this.dwAdditionalFlag = var1.read(this.dwAdditionalFlag, 12, false);
        this.dwGroupTypeFlag = var1.read(this.dwGroupTypeFlag, 13, false);
    }

    @Override
    public void writeTo(JceOutputStream var1) {
        var1.write(this.GroupUin, 0);
        var1.write(this.GroupCode, 1);
        var1.write(this.cFlag, 2);
        var1.write(this.dwGroupInfoSeq, 3);
        if (this.strGroupName != null) {
            var1.write(this.strGroupName, 4);
        }

        if (this.strGroupMemo != null) {
            var1.write(this.strGroupMemo, 5);
        }

        var1.write(this.dwGroupFlagExt, 6);
        var1.write(this.dwGroupRankSeq, 7);
        var1.write(this.dwCertificationType, 8);
        var1.write(this.dwShutupTimestamp, 9);
        var1.write(this.dwMyShutupTimestamp, 10);
        var1.write(this.dwCmdUinUinFlag, 11);
        var1.write(this.dwAdditionalFlag, 12);
        var1.write(this.dwGroupTypeFlag, 13);
    }
}
